<script setup>
import SonCom from './components/SonCom.vue';
</script>
<template>
  <div>
    <h1>组合式API</h1>
    <hr>
    <!-- 属性透传 -->
    <SonCom style="color: red" >
      <button>按钮</button>
    </SonCom>
  </div>
</template>